package com.ruoyi.wms.domain;

import java.util.Date;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 出库单对象 wms_outbound_order
 * 
 * @author ruoyi
 * @date 2024-01-01
 */
public class WmsOutboundOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 出库单ID */
    private Long orderId;

    /** 租户ID */
    @Excel(name = "租户ID")
    private Long tenantId;

    /** 货主ID */
    @Excel(name = "货主ID")
    private Long ownerId;

    /** 仓库ID */
    @Excel(name = "仓库ID")
    private Long warehouseId;

    /** 出库单号 */
    @Excel(name = "出库单号")
    private String orderNo;

    /** 出库类型 */
    @Excel(name = "出库类型", dictType = "wms_outbound_order_type")
    private String orderType;

    /** 出库单状态 */
    @Excel(name = "出库单状态", dictType = "wms_outbound_order_status")
    private String orderStatus;

    /** 客户ID */
    @Excel(name = "客户ID")
    private Long customerId;

    /** 预期出库日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "预期出库日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date expectedDate;

    /** 实际出库日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "实际出库日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date actualDate;

    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }
    public void setTenantId(Long tenantId) 
    {
        this.tenantId = tenantId;
    }

    public Long getTenantId() 
    {
        return tenantId;
    }
    public void setOwnerId(Long ownerId) 
    {
        this.ownerId = ownerId;
    }

    public Long getOwnerId() 
    {
        return ownerId;
    }
    public void setWarehouseId(Long warehouseId) 
    {
        this.warehouseId = warehouseId;
    }

    public Long getWarehouseId() 
    {
        return warehouseId;
    }
    public void setOrderNo(String orderNo) 
    {
        this.orderNo = orderNo;
    }

    public String getOrderNo() 
    {
        return orderNo;
    }
    public void setOrderType(String orderType) 
    {
        this.orderType = orderType;
    }

    public String getOrderType() 
    {
        return orderType;
    }
    public void setOrderStatus(String orderStatus) 
    {
        this.orderStatus = orderStatus;
    }

    public String getOrderStatus() 
    {
        return orderStatus;
    }
    public void setCustomerId(Long customerId) 
    {
        this.customerId = customerId;
    }

    public Long getCustomerId() 
    {
        return customerId;
    }
    public void setExpectedDate(Date expectedDate) 
    {
        this.expectedDate = expectedDate;
    }

    public Date getExpectedDate() 
    {
        return expectedDate;
    }
    public void setActualDate(Date actualDate) 
    {
        this.actualDate = actualDate;
    }

    public Date getActualDate() 
    {
        return actualDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("orderId", getOrderId())
            .append("tenantId", getTenantId())
            .append("ownerId", getOwnerId())
            .append("warehouseId", getWarehouseId())
            .append("orderNo", getOrderNo())
            .append("orderType", getOrderType())
            .append("orderStatus", getOrderStatus())
            .append("customerId", getCustomerId())
            .append("expectedDate", getExpectedDate())
            .append("actualDate", getActualDate())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }

    // 关联查询字段
    /** 货主名称 */
    private String ownerName;

    /** 仓库名称 */
    private String warehouseName;

    /** 客户名称 */
    private String customerName;

    /** 出库明细列表 */
    private List<WmsOutboundOrderDetail> detailList;

    public String getOwnerName() {
        return ownerName;
    }

    public void setOwnerName(String ownerName) {
        this.ownerName = ownerName;
    }

    public String getWarehouseName() {
        return warehouseName;
    }

    public void setWarehouseName(String warehouseName) {
        this.warehouseName = warehouseName;
    }

    public String getCustomerName() {
        return customerName;
    }

    public void setCustomerName(String customerName) {
        this.customerName = customerName;
    }

    public List<WmsOutboundOrderDetail> getDetailList() {
        return detailList;
    }

    public void setDetailList(List<WmsOutboundOrderDetail> detailList) {
        this.detailList = detailList;
    }
}